package com.lagou.java;

/*
*   通话套餐类
* */
public class CallPackage extends Package implements CallService{
    private int talktime;       //通话时长(分钟)
    private int notenum;        //短信条数

    CallPackage() {
    }

    CallPackage(int talktime, int notenum, double monthlyrate) {
        this.talktime = talktime;
        this.notenum = notenum;
        this.monthlyrate = monthlyrate;
    }

    @Override
    public void show(){
        System.out.println("通话时长(分钟):"+ talktime +",短信条数:"+ notenum +",每月资费:"+ monthlyrate);
    }

    @Override
    public void service(int talktime, MobileCard mobileCard) {
        mobileCard.show();
        System.out.println("通话时长(分钟):"+ talktime);
    }
}
